import request from '@/utils/request'

// 封装登录接口
export const login = (obj) => {
  return request.post('/auth/login', {
    username: obj.username,
    password: obj.password
  })
}

// 封装获取用户信息接口
export const getUserInfo = () => {
  return request.get('/auth/currentUser')
}
